import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
//import App from './App';
import MyInfo from './components/MyInfo';
import * as serviceWorker from './serviceWorker';

// ReactDOM.render(<App />, document.getElementById('root'));
// ReactDOM.render(<div><h1>Hello world!呵呵哒</h1><p>叔叔不要,这样不好</p></div>,document.getElementById('root'));
function Aapp() {
       return <p>呵呵哒</p>
}
function MyApp(){
    return <ul>
        <li>甲</li>
        <li>乙</li>
        <li>丙</li>
        <li>丁 <Aapp/>   </li>
    </ul>
}



ReactDOM.render(<MyInfo> <MyApp/></MyInfo>,
    document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
var myNewP = document.getElementsByTagName("p");
myNewP.innerHTML="This is a paragraph.";
serviceWorker.unregister();
